//
//  CQTool.h
//  coninbase_data
//
//  Created by 2.5 on 2021/3/18.
//  Copyright © 2021 ChinaRainbow-iOS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define UIColorFromRGBA(rgbValue, alphaValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0x00FF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0x0000FF))/255.0 \
alpha:alphaValue]

#define UIColorFromRGB(rgbValue) UIColorFromRGBA(rgbValue, 1.0)
#define NotNilStr(str) [CQTool notNilCheck:str]

NS_ASSUME_NONNULL_BEGIN

@interface CQTool : NSObject
+(CQTool*)shareSelf;
@property (nonatomic,strong)NSMutableDictionary *upLoadParamDic;
+(NSString *)notNilCheck:(NSString *)str;
+(void)upLoadActionWIth:(NSString *)bizType andEventId:(NSString *)eventId andExtParam:(NSDictionary *)extParam;
@property (nonatomic,assign)BOOL mp3Pause;
@property (nonatomic,assign)BOOL configJGSuccess;
@property (nonatomic,assign)BOOL IMLoginSuccess;
@property (nonatomic,assign)BOOL showLoginAlert;
+(NSString*)getUUID;
+ (NSString *)load:(NSString *)service;
+(void)changeButtonIndex:(UIButton *)sender;
+(void)changeButtonTopIndex:(UIButton *)sender;
+(CAGradientLayer*)addBottomLayerWith:(UIView *)vv andArray:(NSArray *)array andCorner:(CGFloat)radio;
+(CAGradientLayer*)addBottomLayer2With:(UIView *)vv andArray:(NSArray *)array andCorner:(CGFloat)radio;
+(NSString *)autoCellChange:(NSString *)allStr;
+ (NSString *)createUUID;
+(NSString *)delegteSpace:(NSString *)baseStr;
+(NSArray *)returnUserInfos;
+(CGFloat)statusBarHeight;
@end

NS_ASSUME_NONNULL_END
